import request from '@/utils/request'

// 查询城市查询列表
export function listDict(query) {
  return request({
    url: '/einfo/dict/list',
    method: 'get',
    params: query
  })
}

// 查询城市查询详细
export function getDict(dictId) {
  return request({
    url: '/einfo/dict/' + dictId,
    method: 'get'
  })
}

// 新增城市查询
export function addDict(data) {
  return request({
    url: '/einfo/dict',
    method: 'post',
    data: data
  })
}

// 修改城市查询
export function updateDict(data) {
  return request({
    url: '/einfo/dict',
    method: 'put',
    data: data
  })
}

// 删除城市查询
export function delDict(dictId) {
  return request({
    url: '/einfo/dict/' + dictId,
    method: 'delete'
  })
}
